package com.project.biz;

import com.baomidou.mybatisplus.extension.service.IService;
import com.project.entity.CmsUserSearchRecords;
import com.project.pojo.model.GetUserSearchContentsModel;

import java.util.List;

/**
 * @Description: 用户搜索记录业务层接口类
 * @Author: zhuchi
 * @CreateDate: 2020/11/20 1:41
 * @Version: 1.0
 */
public interface CmsUserSearchRecordsBiz extends IService<CmsUserSearchRecords> {

    /**
     * 分页获取用户搜索记录
     * @param getUserSearchContentsModel
     * @param userId
     * @return
     */
    List<String> getUserSearchContents(GetUserSearchContentsModel getUserSearchContentsModel, Long userId);

    /**
     * 添加搜索记录
     * @param searchContent
     * @param userId
     * @return
     */
    int addRearchRecords(String searchContent, Long userId);

}
